const columnsChangeTip: (columns: Array<any>) => any = (columns) => columns.map((item) => {
  const keys = Object.keys(item || {})
  if (keys[0] === 'title') return item
  return {
    title: item[keys[0]],
    dataIndex: keys[0],
    key: keys[0],
    ...item,
  }
})
export default columnsChangeTip
